<%@ include file="../include/header.jsp" %>

<div class="page-header">
  <h1>DeviceInfos <small>> List DeviceInfo</small>
  </h1>
</div>

<%@ include file="../include/flash.jsp" %>

<div class="row">
  <div class="span2">deviceId</div>
  <div class="span2">mac</div>
  <div class="span2">model</div>
  <div class="span2">sdk</div>
  <div class="span2">os</div>
  <div class="span2">osVersion</div>
  
  <div class="span2">appId</div>
  <div class="span2">clientId</div>
  <div class="span2">alias</div>
  <div class="span2">group</div>
  <div class="span2">createTime</div>
  <div class="span2">ip</div>
  <div class="span2">port</div>
  <div class="span2">serverIp</div>
  <div class="span2">serverPort</div>
  <div class="span2">lastHeartTime</div>
  <div class="span4">Actions</div>
</div>
<c:if test="${empty deviceInfos}">
  <div class="row">
    <div class="span4">No results found!</div>
  </div>
</c:if>
<c:forEach var="current" items="${deviceInfos}">
  <div class="row">
    <div class="span2">${current.deviceId}</div>
    <div class="span2">${current.mac}</div>
    <div class="span2">${current.model}</div>
    <div class="span2">${current.sdk}</div>
    <div class="span2">${current.os}</div>
    <div class="span2">${current.osVersion}</div>
    
    <div class="span2">${current.appId}</div>
    <div class="span2">${current.clientId}</div>
    <div class="span2">${current.alias}</div>
    <div class="span2">${current.group}</div>
    <div class="span2">${current.createTime}</div>
    <div class="span2">${current.ip}</div>
    <div class="span2">${current.port}</div>
    <div class="span2">${current.serverIp}</div>
    <div class="span2">${current.serverPort}</div>
    <div class="span2">${current.lastHeartTime}</div>
    <div class="span4">
      <a href="deviceInfos/${current.id}"><i class="icon-eye-open"></i></a>
      <a href="deviceInfos/edit/${current.id}"><i class="icon-pencil"></i></a>
      <a href="deviceInfos/delete/${current.id}"><i class="icon-trash"></i></a>
    </div>
  </div>
</c:forEach>

<%@ include file="../include/footer.jsp" %>
